package com.farm.wcp.client.domain;

import java.util.List;

import org.json.JSONObject;

import com.farm.wcp.client.utils.WdasJsonMap;

public class ApiResult {

	private int allsize;
	private List<WdasJsonMap> data;

	public ApiResult(JSONObject json) {
		WdasJsonMap wjm = new WdasJsonMap(json.toMap());
		allsize = wjm.getInt("DATA", "totalsize");
		data = wjm.getList("DATA", "list");
	}

	public int getAllsize() {
		return allsize;
	}

	public void setAllsize(int allsize) {
		this.allsize = allsize;
	}

	public List<WdasJsonMap> getData() {
		return data;
	}

	public void setData(List<WdasJsonMap> data) {
		this.data = data;
	}

}
